package com.ruoyi.pollution.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pollution.mapper.BusPsCodOutputpollutantMapper;
import com.ruoyi.pollution.domain.BusPsCodOutputpollutant;
import com.ruoyi.pollution.service.IBusPsCodOutputpollutantService;

/**
 * 排放口污染物设置Service业务层处理
 * 
 * @author maliang
 * @date 2025-09-18
 */
@Service
public class BusPsCodOutputpollutantServiceImpl implements IBusPsCodOutputpollutantService 
{
    @Autowired
    private BusPsCodOutputpollutantMapper busPsCodOutputpollutantMapper;

    /**
     * 查询排放口污染物设置
     * 
     * @param pollutantcode 排放口污染物设置主键
     * @return 排放口污染物设置
     */
    @Override
    public BusPsCodOutputpollutant selectBusPsCodOutputpollutantByPollutantcode(String pollutantcode)
    {
        return busPsCodOutputpollutantMapper.selectBusPsCodOutputpollutantByPollutantcode(pollutantcode);
    }

    /**
     * 查询排放口污染物设置列表
     * 
     * @param busPsCodOutputpollutant 排放口污染物设置
     * @return 排放口污染物设置
     */
    @Override
    public List<BusPsCodOutputpollutant> selectBusPsCodOutputpollutantList(BusPsCodOutputpollutant busPsCodOutputpollutant)
    {
        return busPsCodOutputpollutantMapper.selectBusPsCodOutputpollutantList(busPsCodOutputpollutant);
    }

    /**
     * 新增排放口污染物设置
     * 
     * @param busPsCodOutputpollutant 排放口污染物设置
     * @return 结果
     */
    @Override
    public int insertBusPsCodOutputpollutant(BusPsCodOutputpollutant busPsCodOutputpollutant)
    {
        return busPsCodOutputpollutantMapper.insertBusPsCodOutputpollutant(busPsCodOutputpollutant);
    }

    /**
     * 修改排放口污染物设置
     * 
     * @param busPsCodOutputpollutant 排放口污染物设置
     * @return 结果
     */
    @Override
    public int updateBusPsCodOutputpollutant(BusPsCodOutputpollutant busPsCodOutputpollutant)
    {
        return busPsCodOutputpollutantMapper.updateBusPsCodOutputpollutant(busPsCodOutputpollutant);
    }

    /**
     * 批量删除排放口污染物设置
     * 
     * @param pollutantcodes 需要删除的排放口污染物设置主键
     * @return 结果
     */
    @Override
    public int deleteBusPsCodOutputpollutantByPollutantcodes(String[] pollutantcodes)
    {
        return busPsCodOutputpollutantMapper.deleteBusPsCodOutputpollutantByPollutantcodes(pollutantcodes);
    }

    /**
     * 删除排放口污染物设置信息
     * 
     * @param pollutantcode 排放口污染物设置主键
     * @return 结果
     */
    @Override
    public int deleteBusPsCodOutputpollutantByPollutantcode(String pollutantcode)
    {
        return busPsCodOutputpollutantMapper.deleteBusPsCodOutputpollutantByPollutantcode(pollutantcode);
    }

    /**
     * 删除排放口污染物设置信息
     *
     * @param pollutantcode 排放口污染物设置主键
     * @return 结果
     */
    @Override
    public int deleteByParam(String pollutantcode,String outportcode,String entcode)
    {
        return busPsCodOutputpollutantMapper.deleteByParam(pollutantcode,outportcode,entcode);
    }
}
